#include "mallardduck.h"

MallardDuck::MallardDuck(Quackable *quack)
    : m_quack(quack)
{
}

void MallardDuck::quack()
{
    if (m_quack)
    {
        m_quack->quack();
    }
}

void MallardDuck::setQuack(Quackable *quack)
{
    m_quack = quack;
}
